paned: Fix compiler warnings
authorMatthias Clasen <mclasen@redhat.com>
Sun, 31 May 2015 01:27:57 +0000 (21:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 2 Jun 2015 13:08:15 +0000 (09:08 -0400)
Fix warnings due to -Wdeclaration-after-statement and -Wshadow.

gtk/gtkpaned.c

index 31c8b96c7539ee5f8d4707dafcd41ed9e9023402..bf65ddc67f1ae5e2e880b49f0dbc9bc81775a759 100644 (file)
@@ -2445,7 +2445,7 @@ gtk_paned_get_cycle_chain (GtkPaned          *paned,
   /* Walk the list and expand all the paned widgets. */
   for (list = temp_list; list != NULL; list = list->next)
     {
-      GtkWidget *widget = list->data;
+      widget = list->data;
 
       if (widget)
        {
@@ -2773,7 +2773,6 @@ gtk_paned_cycle_handle_focus (GtkPaned *paned,
       GtkContainer *container = GTK_CONTAINER (paned);
       GtkPaned *focus;
       GtkPaned *first;
-      GtkPaned *prev, *next;
       GtkWidget *toplevel;
       GtkWidget *focus_child;